const getFormattedDate = (date = new Date()) => {
  const year = date.getFullYear();
  const month = String(date.getMonth() + 1).padStart(2, '0');
  const day = String(date.getDate()).padStart(2, '0');

  return `${year}-${month}-${day}`;
}

// 开票类型
const invoiceTypeList = [
  { key: 1, label: '红冲', value: 'HC' }, // 必须是 'HC'，和联动逻辑中的值匹配
  { key: 2, label: '开票', value: 'KP' },
  { key: 3, label: '作废', value: 'ZF' },
  { key: 4, label: '调整', value: 'TZ' },
]



// 销售类型
const salesTypeList = [
  { key: 1, label: '对外销售', value: 'dwxs' },
  { key: 2, label: '资产处置', value: 'zccl' },
]
// 销售类型
const dictionaryWhether = [

  { key: 1, label: '否', value: 'N' },
  { key: 2, label: '是', value: 'Y' },
]
// 专业类型
const professionalTypeList = [
  { label: '热门专业', key: 1, value: 'rmzy' },
  { label: '传统专业', key: 2, value: 'ctzy' },
  { label: '新兴专业', key: 3, value: 'xxzy' },
]
// 发票类型
const invoiceTypeOptions = [
  { key: 1, label: '增值税专用发票', value: 'zzzysf' },
  { key: 2, label: '增值税普通发票', value: 'zzzypf' },
  { key: 3, label: '电子普通发票', value: 'dzpf' },
  { key: 4, label: '机动车销售发票', value: 'jdcsale' },
  { key: 5, label: '二手车销售发票', value: 'escsale' },
  { key: 6, label: '定额发票', value: 'dinge' },
  { key: 7, label: '卷式发票', value: 'juanshi' },
  { key: 8, label: '通行费发票', value: 'tongxing' }
];
// 计税方式
const taxCalculationOptions = [
  { key: 1, label: '一般计税', value: 'general' },
  { key: 2, label: '简易计税', value: 'simple' },
  { key: 3, label: '差额计税', value: 'difference' },
  { key: 4, label: '核定征收', value: 'approved' },
  { key: 5, label: '免税', value: 'exempt' },
  { key: 6, label: '零税率', value: 'zeroRate' },
  { key: 7, label: '预缴计税', value: 'prepaid' }
];
// 收款类型
const paymentTypeOptions = [
  { key: 1, label: '预付款', value: 'advancePayment' },
  { key: 2, label: '质保金', value: 'qualityDeposit' },
  { key: 3, label: '安保费', value: 'securityFee' },
  { key: 4, label: '进度款', value: 'progressPayment' },
  { key: 5, label: '结算款', value: 'settlementPayment' },
  { key: 6, label: '定金', value: 'earnestMoney' },
  { key: 7, label: '尾款', value: 'balancePayment' },
  { key: 8, label: '违约金', value: 'liquidatedDamages' }
];
// 面积单位
const areaUnitOptions = [
  { key: 1, label: '平方米', value: 'squareMeter' },
  { key: 2, label: '平方分米', value: 'squareDecimeter' },
  { key: 3, label: '平方厘米', value: 'squareCentimeter' },
  { key: 4, label: '平方毫米', value: 'squareMillimeter' },
  { key: 5, label: '公顷', value: 'hectare' },
  { key: 6, label: '平方千米', value: 'squareKilometer' },
  { key: 7, label: '亩', value: 'mu' },
  { key: 8, label: '平方英尺', value: 'squareFoot' },
  { key: 9, label: '平方英寸', value: 'squareInch' },
  { key: 10, label: '平方码', value: 'squareYard' }
];
// 特殊票据类型
const specialTicketTypeOptions = [
  { key: 1, label: '铁路车票', value: 'railwayTicket' },
  { key: 2, label: '建筑服务', value: 'constructionServiceLocation' },
  { key: 3, label: '航空运输电子客票行程单', value: 'airTicketItinerary' },
  { key: 4, label: '公路水路客运发票', value: 'roadWaterTicket' },
  { key: 5, label: '二手车销售统一发票', value: 'usedCarInvoice' },
  { key: 6, label: '机动车销售统一发票', value: 'motorVehicleInvoice' },
  { key: 7, label: '通行费电子普通发票', value: 'tollElectronicInvoice' },
  { key: 8, label: '旅客运输电子普通发票', value: 'passengerTransportInvoice' },
  { key: 9, label: '农产品收购发票', value: 'agriculturalPurchaseInvoice' },
  { key: 10, label: '海关进口增值税专用缴款书', value: 'customsVatPayment' },
  { key: 11, label: '税收缴款书', value: 'taxPaymentReceipt' }
];

// 开票人
const drawerList = [
  { key: 1, label: '张三', value: 'zhangsan' },
  { key: 2, label: '李四', value: 'lisi' },
  { key: 3, label: '王五', value: 'wangwu' },

]
// 收款人
const payeeList = [

  { key: 1, label: '赵六', value: 'zhaoliu' },
  { key: 2, label: '孙七', value: 'sunqi' },
  { key: 3, label: '周八', value: 'zhouba' },
  { key: 4, label: '吴九', value: 'wujin' },
  { key: 5, label: '郑十', value: 'zhengshi' },
]
// 复合人
const reviewerList = [

  { key: 1, label: '钱十一', value: 'qianshiyi' },
  { key: 2, label: '孙十二', value: 'sunshier' },
  { key: 3, label: '周十三', value: 'zhoushisan' },
  { key: 4, label: '吴十四', value: 'wushisi' }
]
// 定义部门选项
const departmentOptions = [
  { key: 1, label: '销售部', value: 'dept1' },
  { key: 2, label: '技术部', value: 'dept2' },
  { key: 3, label: '财务部', value: 'dept3' },
  // 可根据实际情况添加更多部门
];
export { getFormattedDate, invoiceTypeList, salesTypeList, departmentOptions, specialTicketTypeOptions, invoiceTypeOptions, drawerList, reviewerList, payeeList, taxCalculationOptions, paymentTypeOptions, areaUnitOptions, dictionaryWhether, professionalTypeList };
